﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>CeShi</title>
    <script src="~/Scripts/jquery-1.8.2.min.js"></script>
    <script>
        $(document).ready(function () {
            $.get("http://localhost:32132/api/values/getaaa", function (res) {
              var p=  jQuery.parseJSON(res);
                $(p).each(function(i,obj){
                    var str = "<tr>";
                    str += "<td>" + obj.Firm_Id + "</td>";
                    str += "<td>" + obj.Firm_Name + "</td>";
                    str += "</tr>";
                    $("#tt").append(str);
                });
                
            });
        });
    </script>
</head>
<body>
    <div>
        <table>
            <thead>
                <tr>
                    <th>编号</th>
                    <th>名称</th>
                </tr>
            </thead>
            <tbody id="tt">

            </tbody>
        </table>
    </div>
</body>
</html>
